Skip to content

Harden IBKR Cloud Run connection cycles#32

Merged
Pigbibi merged 3 commits into
mainfrom
fix-ibkr-longbridge-cash-diagnostics
Apr 20, 2026
Merged

Harden IBKR Cloud Run connection cycles#32
Pigbibi merged 3 commits into
mainfrom
fix-ibkr-longbridge-cash-diagnostics

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • serialize Cloud Run IBKR execution with single-instance/single-thread settings
  • add per-instance execution lock and bounded IBKR connect retries with client-id offsets
  • keep stale IBKR sessions from blocking future cycles by using QPK v0.7.19 connection cleanup

Verification

  • ruff check .
  • .venv/bin/python -m pytest tests/test_request_handling.py tests/test_event_loop.py
  • bash tests/test_sync_cloud_run_env_workflow.sh

@Pigbibi Pigbibi marked this pull request as ready for review April 20, 2026 21:22
@Pigbibi Pigbibi merged commit 9ab7065 into main Apr 20, 2026
1 check passed
@Pigbibi Pigbibi deleted the fix-ibkr-longbridge-cash-diagnostics branch April 20, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant